home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / utils / tlayr10 / graph13h.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-19  |  1.4 KB  |  76 lines

  1. // GRAPH13H.H
  2. // MODE 13H Graphic Function
  3.  
  4. #ifndef __RGBCOLOR
  5.  
  6. #define __RGBCOLOR
  7.  
  8. typedef struct {
  9.                 char red;
  10.                 char green;
  11.                 char blue;
  12.                } RGB_color;
  13.  
  14. #endif
  15.  
  16. /* Colors for setpalette */
  17.  
  18. #if    !defined(__COLORS)
  19. #define __COLORS
  20.  
  21. enum COLORS {
  22.     BLACK,            /* dark colors */
  23.     BLUE,
  24.     GREEN,
  25.     CYAN,
  26.     RED,
  27.     MAGENTA,
  28.     BROWN,
  29.     LIGHTGRAY,
  30.     DARKGRAY,            /* light colors */
  31.     LIGHTBLUE,
  32.     LIGHTGREEN,
  33.     LIGHTCYAN,
  34.     LIGHTRED,
  35.     LIGHTMAGENTA,
  36.     YELLOW,
  37.     WHITE
  38. };
  39. #endif
  40.  
  41. #define MODE_13H           0x0013
  42. #define TEXT_MODE          0x0003
  43. #define DEFAULT_FONT       (char far *)0xF000FA6E
  44.  
  45. #ifdef __cplusplus
  46. extern "C" {
  47. #endif
  48.  
  49. extern unsigned char Curcol;
  50. extern char far *CurFont;
  51. extern RGB_color def_palette[256];
  52.  
  53. extern void Draw_rect(unsigned, unsigned, unsigned, unsigned);
  54.  
  55. extern void Draw_box(unsigned, unsigned, unsigned, unsigned);
  56.  
  57. extern void OutChar(unsigned, unsigned, unsigned char);
  58.  
  59. extern void OutText(unsigned, unsigned, char *);
  60.  
  61. extern void put_pixel(unsigned, unsigned);
  62.  
  63. extern void clear_video(unsigned);
  64.  
  65. extern void set_video(unsigned);
  66.  
  67. extern void set_palette(RGB_color *);
  68.  
  69. extern void save_area(unsigned, unsigned, unsigned, unsigned, char far *);
  70.  
  71. extern void put_area(unsigned, unsigned, char far *);
  72.  
  73. #ifdef __cplusplus
  74. }
  75. #endif
  76.